//引入request
import request from '@/utils/request.js'

// 创建房间
export const addRoom = (data) => {
  return request({
    method: 'POST',
    url: 'room/add',
    data: data
  })
}
// 获取房间
export const getRoom = (params) => {
  return request({
    method: 'GET',
    url: 'room/get',
    params: params
  })
}